﻿using SqlSugar;

namespace Fibot.HYYY.K3Cloud.Wdt.Core.Entities;

[SugarTable("QAAW_T_WDT_Stockout")]
public class QAAW_T_WDT_Stockout
{
    [SugarColumn(IsPrimaryKey = true)]
    public int FID { get; set; }

    public string FBILLNO { get; set; }

    public string FDOCUMENTSTATUS { get; set; } = "C";

    /// <summary>
    /// 出库单号
    /// </summary>
    [SugarColumn(ColumnName = "forder_no")]
    public string order_no { get; set; }

    /// <summary>
    /// 出库单号
    /// </summary>
    [SugarColumn(ColumnName = "F_consign_time")]
    public DateTime consign_time { get; set; }

    /// <summary>
    /// 订单状态
    /// </summary>
    [SugarColumn(ColumnName = "ftrade_status")]
    public string trade_status { get; set; }

    /// <summary>
    /// 数量
    /// </summary>
    [SugarColumn(ColumnName = "fgoods_count")]
    public decimal goods_count { get; set; }

    /// <summary>
    /// 货品总售价
    /// </summary>
    [SugarColumn(ColumnName = "fgoods_total_amount")]
    public decimal goods_total_amount { get; set; }

    /// <summary>
    /// 收件人
    /// </summary>
    [SugarColumn(ColumnName = "freceiver_name")]
    public string receiver_name { get; set; }

    /// <summary>
    /// 物流单号
    /// </summary>
    [SugarColumn(ColumnName = "flogistics_no")]
    public string logistics_no { get; set; }

    /// <summary>
    /// 详细地址
    /// </summary>
    [SugarColumn(ColumnName = "freceiver_address")]
    public string receiver_address { get; set; }

    /// <summary>
    /// 收件人移动电话
    /// </summary>
    [SugarColumn(ColumnName = "freceiver_mobile")]
    public string receiver_mobile { get; set; }

    /// <summary>
    /// 备注
    /// </summary>
    [SugarColumn(ColumnName = "fremark")]
    public string remark { get; set; }

    /// <summary>
    /// 店铺编号
    /// </summary>
    [SugarColumn(ColumnName = "fshop_no")]
    public string shop_no { get; set; }

    /// <summary>
    /// 店铺名称
    /// </summary>
    [SugarColumn(ColumnName = "fshop_name")]
    public string shop_name { get; set; }

    /// <summary>
    /// 买家留言
    /// </summary>
    [SugarColumn(ColumnName = "fbuyer_message")]
    public string buyer_message { get; set; }

    /// <summary>
    /// 客服备注
    /// </summary>
    [SugarColumn(ColumnName = "fcs_remark")]
    public string cs_remark { get; set; }


    /// <summary>
    /// 分销类别
    /// </summary>
    [SugarColumn(ColumnName = "ffenxiao_type")]
    public string fenxiao_type { get; set; }

    /// <summary>
    /// 分销商信息
    /// </summary>
    [SugarColumn(ColumnName = "ffenxiao_nick")]
    public string fenxiao_nick { get; set; }

    [SugarColumn(IsIgnore = true)]
    public List<QAAW_T_WDT_StockoutEntry> details_list { get; set; }

}
